home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
slrenam5.arc
/
SLRENAM5.DOC
< prev
next >
Wrap
Text File
|
1991-12-22
|
6KB
|
162 lines
SLRENAME 1.5 - Turn handles into real names for SL export and vice versa
-----------------------------------------------------
(c)1991 Glen Johnson. All Rights Reserved
This program was written with Searchlight BBS systems running SLMAIL to
export echomail messages to *.MSG format in mind.
Version 1.5 allows you to use the program on export or import. The config
file name is now specified on the command line along with which path to
scan. This allows you to use the program with two config files exactly
the opposite of each other so that you can convert handles to real names
on export, and real names to handles on import.
New for version 1.5
===================
Version 1.5 supports up to 512 entries in the config file. The program also
sets the DOS ERRORLEVEL when it exits. The value of ERRORLEVEL will be equal
to the number of messages SLRENAME has changed. This will allow you to trap
an errorlevel in a batch file and do something based on it. If more than
255 message files have been changed, the ERRORLEVEL is set to 255.
1.5 is also released as a shareware product. Registration is $15. The
registered version has no "unregistered" screens, and doesn't beg you to
register. The unregistered version is fully functional, and is batch capable.
A note about 1.4
================
Those of you that got 1.4 should upgrade. 1.4, although very similar to this
version, had a couple of minor bugs in it, and you couldn't run it in a batch
file. Try 1.5 out . If you like it, REGISTER it and you'll like it a whole lot
more.
Overview:
This program is an interim solution to a limitation of the SLMAIL program.
SLMAIL, when exporting messages from Searchlight's message base, will
look for messages from SYSOP and create the resulting .MSG file with
whatever name you specify in the SLMAIL.CFG file. Unfortunately, it ONLY
looks for messages from SYSOP, not from anyone else.
Many Fidonet backbone conferences, including the SEARCHLIGHT conference,
do not allow the use of handles or aliases. This creates a dilemma for
Searchlight sysops in that no conference moderator has the right to tell
any BBS operator that he can't allow his users to use a handle or alias
on his BBS. So if you run a Searchlight BBS, carry the SEARCHLIGHT echomail
conference or any other conference that prohibits the use of handles,
and you let your users use handles on your BBS, you're basically faced with
two choices. 1) You don't allow your users access to the conference, or
2) You let users with handles access the conference and risk having your
link cut.
This program can give you some relief...
SLRENAME will scan .MSG files created by SLMAIL, look for a name in
the From: field of the message, and change it to whatever name you want.
How to make it go:
Calling syntax:
SLRENAME <drive\path\configfilename> <drive:\messagepath\>
example:
SLRENAME EXPORT.CFG C:\ECHOS\SEARCHLIGHT\
The program will scan C:\ECHOS\SEARCHLIGHT\ for messages to process.
It will use EXPORT.CFG for its config file.
The config file
---------------
SLRENAME will read the configuration file specified on the command line
for the names to convert. For example:
Bob Jones=MANIAC
Steve Smith=BONEHEAD
If those two lines are in your configuration file, all the messages that
have MANIAC in the From: field of the message, will have that handle replaced
with Bob Jones. Likewise, messages from BONEHEAD will be replaced with Steve
Smith. You can have up to 512 entries in the config file. Note that the equal
sign is important, don't forget it. Also, the config file is CASE SENSITIVE.
Hints and stuff
---------------
To convert handles to real names when exporting messages from Searchlight
into Fido land, create a file called EXPORT.CFG (or use whatever filename
you like) and make it look like this:
Bob Jones=MANIAC MAN
IMMEDIATELY after doing your SLMAIL export, run SLRENAME:
SLRENAME EXPORT.CFG G:\ECHOS\SL\
SLRENAME will scan G:\ECHOS\SL\ for .MSG files . It will change the
name in the message header of each .MSG from MANIAC MAN to Bob Jones,
if it finds any. You can then use your fidonet mail tosser to export/scan
and pack up the outgoing mail.
To convert real names in incoming messages to handles so that you can
put them INTO Searchlight, make a config file called IMPORT.CFG (or
whatever name you like) and make it exactly the OPPOSITE of EXPORT.CFG .
Like this:
MANIAC MAN=Bob Jones
Run SLRENAME immediately BEFORE doing an SLMAIL IMPORT:
SLRENAME IMPORT.CFG G:\ECHOS\SL\
SLRENAME will take any .MSG file addressed to Bob Jones, and re-address
it to MANIAC MAN. You may now do your SLMAIL IMPORT and move the .MSG
files into Searchlight's message base.
Remember, when importing, do SLRENAME then the next program you run is
SLMAIL in import mode. When exporting, do your SLMAIL in export mode
FIRST, THEN SLRENAME with your exporting config file.
Two sample config files are included in this archive so you get the idea
better.
Disclaimer
----------
This is a copyrighted work by Glen Johnson. You are free to use it,
and distribute it provided that you make no changes to it, and provided
that this documentation accompanies the software.
A version of this software is available to those who register the program,
that doesn't nag you to register. Registration is $15 US funds. Send
your money order to Glen Johnson, PO Box 60, Convent Station NJ 07961.
This program works just fine on my system, it may not on yours. Use of this
program is ENTIRELY at your own risk. If you're not willing to accept
full responsibility for what happens to your system as a direct or indirect
result of using this program, DON'T use it. I assume no responsibility
for its performance, fitness for a particular purpose, and assume no
liability for damages, direct or indirect, incurred as a result of using
or misusing this program. This software is provided as-is.
Closing argument
----------------
When Frank LaRosa gets around to changing SLMAIL to handle these functions,
this program will become instantly obsolete. So, I probably won't enhance it
much. Now that it will do imports AND exports, I can't imagine the need to
enhance it any further, but who knows. Have fun.
Glen Johnson
1:2605/269@fidonet